﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;

namespace DLM.Web.ViewModel
{
    public class BuyPageView
    {
        public string Body { get; set; }

        [Required(ErrorMessage = "充值金额不允许为空")]
        [RegularExpression(@"^(-?\d+)(\.\d+)?$", ErrorMessage = "充值金额格式不正确！")]
        public string Price { get; set; }

        public string Subject { get; set; }
    }
}
